import request from "@/utils/request";

export function getCategoryListApi() {
  return request({
    url: "/category/get_category_list",
    method: "get",
    params: { page: -1, size: 0 },
  });
}

export function getCategoryApi(id: number) {
  return request({
    url: "/category/get_category",
    method: "get",
    params: {
      id,
    },
  });
}
